package ess.hardware;

public class DoorClosingSensor {
	DoorClosingSensorEventListener listener;
	
	public static int DOOR_CLOSED = 1;
	public static int DOOR_OPENED = 2;
	
	public DoorClosingSensor()
	{
	}
	
	public void addDoorClosingSensorEventListener(DoorClosingSensorEventListener l)
	{
		listener = l;
	}
	
	public void postEvent(DoorClosingSensorEvent e)
	{
		listener.notifyDoorStateChanged(e);
	}
}
